package cn.littlehx.myweb.common;

import lombok.Data;

@Data
public class R {
    /**
     * 显示是否成功
     */
    private boolean flag;
    /**
     * 返回的数据
     */
    private Object data;

    /**
     * 返回提示信息
     */
    private String message;
    public R(){};
    public R(Boolean flag){
        this.flag = flag;
    }

    public R(Boolean flag, Object data){
        this.flag = flag;
        this.data = data;
    };
    public R(Boolean flag, Object data, String message){
        this.flag = flag;
        this.data = data;
        this.message = message;
    };
}
